<?php

class Application_Model_Roles extends Zend_Db_Table
{
    protected $_name = 'roles';
    protected $_role;


    public function getRole($id = null)
    {
        $where = "role_id = ". $id;
        $this->_role = $this->fetchAll($where);
        return $this->_role[0]['role'];
    }

}

